<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>社会保障卡银行数据文件生成</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="${pageContext.request.contextPath }/scripts/boot.js" type="text/javascript"></script>
</head>
<style type="text/css">
html,body {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
</style>
<body>
<form id="form1" method="post">
  <div style="padding-bottom:5px;">
    <table style="border:solid 1px #aaa;width:100%;">
      <tr>
        <td style="width:9%;text-align: right;">制卡批次:</td>
        <td style="width:15%;"><input name="aac001" class="mini-textbox" emptyText="请输入社会保障卡号" /></td>
        <td style="width:6%;text-align: right;">银行：</td>
        <td style="width:15%;"><input name="aac058" class="mini-combobox" valueField="bm" 
                                      textField="mch" id="aac058" emptyText="请选择证件类型"
                                      url="<%-- ${pageContext.request.contextPath }/AC01.do?method=getselect&lx=sfzjlx --%>"/>        </td>
        <td style="width:6%;text-align: right;">文件类型：</td>
        <td style="width:15%;"><input name="aac058" class="mini-combobox" valueField="bm" 
                                      textField="mch" id="aac058" emptyText="请选择证件类型"
                                      url="<%-- ${pageContext.request.contextPath }/AC01.do?method=getselect&lx=sfzjlx --%>"/>        </td>
        </tr>
        <tr>
        <td style="width:6%;text-align: right;">记录数：</td>
        <td style="width:15%;"><input name="aac058" class="mini-textbox" >        </td>
        <td style="width:15%;text-align: center; white-space:nowrap;">          </td>
          <td colspan="3" style="width:15%;text-align: left;">
          <a class="mini-button"  onclick="search()">导出</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <a class="mini-button" iconCls="icon-remove"  onclick="onReset">重置</a>        </td>
      </tr>
    </table>
  </div>
</form>

<script type="text/javascript">
    mini.parse();
    var grid = mini.get("datagrid1");
    var form = new mini.Form("form1");
    grid.load();
    function edit() {
      var row = grid.getSelected();
      if (row) {
          mini.open({
                    url: bootPATH + "../page/AC01/AC01_edit.jsp",
                    title: "编辑", width: 650, height: 460,
                    onload: function () {
                        var iframe = this.getIFrameEl();
                        var data = { action: "edit", id: row.aac001 };
                        iframe.contentWindow.SetData(data);
                        },
                    ondestroy: function (action) {
                        grid.reload();
                        }
                    });
               } else {
                 mini.alert("请选中一条记录");
               }
    }

    function search() {
      var AAC001 = mini.getbyName("aac001").getValue().trim();
      var AAC058 = mini.getbyName("aac058").getValue();
      var aac002 = mini.getbyName("aac002").getValue().trim();
      var AAC003 = mini.getbyName("aac003").getValue().trim();
      if (AAC001 == "" && AAC058 == "" && aac002 == "" && AAC003 == "") {
         mini.alert("请输入查询条件");
      }
      grid.load({ AAC001: AAC001, AAC058: AAC058, aac002: aac002, AAC003: AAC003});
      }

    function onKeyEnter(e) {
      search();
    }

    function onReset(e) {
       form.clear();
    }
</script>
</body>
</html>
